<div class="container" [ngStyle]="{'height':sliderHeight}">
  <div class="image-slider" (scroll)="handleScroll($event)"  #coolImageSlider>
    <img #img *ngFor="let slider of sliders" [src]="slider.imgUrl" [alt]="slider.caption">
  </div>
  <div class="nav-section">
    <span *ngFor="let slider of sliders; let idx=index" class="slide-button" [ngClass]="{'slide-button-seleted':idx===selectedIndex}">
    </span>
  </div>
</div>
